package com.zjcode.cas;

import lombok.extern.slf4j.Slf4j;
import net.unicon.cas.client.configuration.EnableCasClient;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * @ClassName:ZjcodeOAServiceApplication
 * @功能：
 * @author：wlei
 * @日期：2022/4/8-2:52 PM
 **/
@SpringBootApplication(scanBasePackages = "com.zjcode.cas")
@EnableDiscoveryClient
@Slf4j
@EnableCasClient
@EnableFeignClients(basePackages = {"com.zjcode.cas"})
@EnableCircuitBreaker
public class ServerApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {

    }
}
